/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.safetytask.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "用户与任务之间的关系", description = "用户与任务之间的关系实体类")
public class TaskUserRelation extends BaseEntity {

    @ApiModelProperty(value = "水司code", name = "corpCode", required = true)
    private String corpCode;

    @ApiModelProperty(value = "任务id", name = "taskId", required = true)
    private String taskId;

    @ApiModelProperty(value = "任务接受人code", name = "receiverCode", required = true)
    private String receiverCode;

    @ApiModelProperty(value = "任务接受人所在部门code", name = "receiverCode", required = true)
    private String receiverDepartmentCode;

    @ApiModelProperty(value = "任务结果id", name = "taskResultId", required = true)
    private String taskResultId;

    @ApiModelProperty(value = "0-未完成 1-已完成 2-待审核", name = "isFinish", required = true)
    private Integer isFinish;

    @ApiModelProperty(value = "审批状态；0：审批中，1：审批完成", name = "isFinish", required = true)
    private Integer state;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getReceiverCode() {
        return receiverCode;
    }

    public void setReceiverCode(String receiverCode) {
        this.receiverCode = receiverCode;
    }

    public String getReceiverDepartmentCode() {
        return receiverDepartmentCode;
    }

    public void setReceiverDepartmentCode(String receiverDepartmentCode) {
        this.receiverDepartmentCode = receiverDepartmentCode;
    }

    public String getTaskResultId() {
        return taskResultId;
    }

    public void setTaskResultId(String taskResultId) {
        this.taskResultId = taskResultId;
    }

    public Integer getIsFinish() {
        return isFinish;
    }

    public void setIsFinish(Integer isFinish) {
        this.isFinish = isFinish;
    }

    @Override
    public String toString() {
        return "TaskUserRelation{" +
                "corpCode='" + corpCode + '\'' +
                ", taskId='" + taskId + '\'' +
                ", receiverCode='" + receiverCode + '\'' +
                ", taskResultId='" + taskResultId + '\'' +
                ", isFinish=" + isFinish +
                '}';
    }
}
